class Advice < ActiveRecord::Base

  belongs_to :course
  
  validates_presence_of :title
  validates_presence_of :description
  validates_presence_of :course
  validates_uniqueness_of :title ,:scope => [:title,:course_id]

end
